/**
 * @author hhlxy
 * @version 1.0
 * @since 2025/8/14
 */
package cn.yilongquan.Listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class PermissionScanListener implements CommandLineRunner {
    @Autowired
    private PermissionScan permissionScan;

    @Override
    public void run(String... args) throws Exception {
        new Thread(()->{
            permissionScan.scanPermission();//扫描注解
        }).start();
    }
}
